package com.flx.at.spring.code.test.testbeanprocessor.config;

import com.flx.at.spring.code.test.testbeanprocessor.component.ProcessA;
import com.flx.at.spring.code.test.testbeanprocessor.component.ProcessB;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: Fenglixiong
 * @Date: 2021/7/3 19:23
 * @Description:
 */
@Configuration
public class ProcessConfig {

    @Bean(initMethod = "init")
    public ProcessA processA(){
        return new ProcessA();
    }

    @Bean(initMethod = "init")
    public ProcessB processB(){
        return new ProcessB();
    }

}
